package com.jkt.rms.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;

import com.jkt.rms.businessservice.ReportBusinessService;
import com.jkt.rms.commons.utils.RMSException;
import com.jkt.rms.commons.utils.ServiceLocator;

public class ReportController extends AbstractMultiActionController {

	private final static Logger LOG = Logger.getLogger(ReportController.class);
	private ReportBusinessService reportBusinessService = ServiceLocator
			.getServiceLocator().locate("reportBusinessService");

	public ModelAndView showReport(HttpServletRequest request,
			HttpServletResponse response) throws RMSException {
		LOG.info("Show Report");
		reportBusinessService.showReport();
		return new ModelAndView("searchAddRate");

	}
}